package javax.microedition.io;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import javax.microedition.io.file.FileConnectionImpl;
import javax.wireless.messaging.MessageConnectionImpl;

public class Connector {
  public static final int READ = 1;

  public static final int WRITE = 2;

  public static final int READ_WRITE = 3;

  public static DataInputStream openDataInputStream(String paramString) throws IOException {
    return null;
  }

  public static DataOutputStream openDataOutputStream(String paramString) throws IOException {
    return null;
  }

  public static InputStream openInputStream(String paramString) throws IOException {
    return null;
  }

  public static OutputStream openOutputStream(String paramString) throws IOException {
    return null;
  }

  public static Connection open(String paramString) throws IOException {
    return open(paramString, 3);
  }

  public static Connection open(String paramString, int paramInt) throws IOException {
    return open(paramString, paramInt, false);
  }

  public native static String SetPath(String paramString, int paramInt, boolean paramBoolean);

  public static Connection open(String paramString, int paramInt, boolean paramBoolean) throws IOException {
    if (paramString.startsWith("file://"))
      return (Connection)new FileConnectionImpl(SetPath(paramString, paramInt, paramBoolean)); 
    if (paramString.startsWith("sms://"))
      return (Connection)new MessageConnectionImpl(paramString); 
    return null; 
  }
}

/*
 * Location:
 * C:\Java\rt\javax\microedition\cldc_1.1.jar!\javax\microedition\io\Connector.
 * class
 * Java compiler version: 3 (47.0)
 * JD-Core Version: 1.1.3
 */